import 'package:flutter/material.dart';
import './page/anamaiton.dart';
import './page/anamationw.dart';
import './page/column.dart';
import './page/container.dart';
import './page/row.dart';
import './page/text.dart';
import './router.dart';
import './start/grid.dart';



void main() {
  runApp(MaterialApp(
    title: 'Welcome to Flutter',
    home: MyHomePage(), // becomes the route named '/'
    routes: <String, WidgetBuilder> {
      '/detail': (BuildContext context) => MyPage(),
      '/container': (BuildContext context) => DemoContainer(),
      '/row': (BuildContext context) => DemoRow(),
      '/column': (BuildContext context) => DemoColumn(),
      '/text': (BuildContext context) => DemoText(),
      '/anamaiton': (BuildContext context) => DemoAnamation(),
      '/select': (BuildContext context) => Slidown(),
    },
  ));
}

class MyHomePage extends StatefulWidget {
 @override
 _MyHomePageState createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> with SingleTickerProviderStateMixin {

  @override
  Widget build(BuildContext context) {
    return  Scaffold(
      appBar: AppBar(title: const Text('首页'),),
      body: Container(
        child: MyGrid(),
      ),
    );
  }
}